Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s).#3780
Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s).#3780dstogov wants to merge 4 commits into
Conversation
|
Looks like Windows build is broken:
|
|
On 1/31/19 7:08 PM, Nikita Popov wrote:
Looks like Windows build is broken:
ext\com_dotnet\com_handlers.c(471): error C2039: 'value': is not a
member of '_zend_object'
c:\projects\php-src\zend\zend_types.h(370): note: see declaration of
'_zend_object'
Very possible. I don't run Windows.
I'll try to fix this blindly or ask Anatol to help.
Thanks. Dmitry.
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3780 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/ACZM0pkRDlvue5u8NcLk8yvHCYQPh3m9ks5vIxTvgaJpZM4acmDC>.
|
|
This patch was especially delayed for PHP-8, where source compatibility is expected to be broken.
…________________________________
From: Joe Watkins <notifications@github.com>
Sent: Friday, February 1, 2019 8:10:55 AM
To: php/php-src
Cc: Dmitry Stogov; Author
Subject: Re: [php/php-src] Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s). (#3780)
This is nice for extension authors too, I like ...
@weltling<https://github.com/weltling> @KalleZ<https://github.com/KalleZ> can we get some windows input please ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3780 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACZM0sJDlnfPtbKUne24rYR3c1nMrncPks5vI8xfgaJpZM4acmDC>.
|
|
@dstogov ack, added 8 milestone to make that explicit ... although seems obvious :) |
nikic
left a comment
There was a problem hiding this comment.
LGTM, apart from one get_properties usage.
There was a problem hiding this comment.
Not sure, but we might want to change zend_read_property to accept a zobj too?
There was a problem hiding this comment.
May be make sense, but together with zend_update_property...(), zend_unset_property...(), some exception functions and may be others. Let do it separately.
|
@nikic thanks for review. I've fixed the get_properties() issue. |
|
I've made a patch for ext/com_dotnet. It compiles, and the test suite shows no regression. Obviously, this part can't work, though. |
|
@cmb69 ah, you beat me to it, thanks :) With the non working part - you can check whether you allocate/free that zval. Or, change the Thanks. |
|
@cmb69 also it were better to just adjust the Thanks. |
|
Thanks, @weltling!
That's intriguing!
The original Anyhow, I'll have a closer look tomorrow. |
Which looks not right for PHP 7, though. PS: Seems to be okay in this case, since there are no default properties. |
|
Thanks. I'll merge this today.
…________________________________
From: Christoph M. Becker <notifications@github.com>
Sent: Friday, February 1, 2019 9:19:29 PM
To: php/php-src
Cc: Dmitry Stogov; Mention
Subject: Re: [php/php-src] Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s). (#3780)
I've made a patch for ext/com_dotnet<https://gist.github.com/cmb69/6cc9ff6883b2d35ae6ce1ac05b6559c3>. It compiles, and the test suite shows no regression. Obviously, this part<https://gist.github.com/cmb69/6cc9ff6883b2d35ae6ce1ac05b6559c3#file-patch-L336-L340> can't work, though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3780 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACZM0qIs4etDHH3A27nNqunBbebIuh8mks5vJIUxgaJpZM4acmDC>.
|
|
Can you please also add some notes about this to UPGRADING.INTERNALS? |
|
@nikic OK I'll do. The PR is merged. |
|
@cmb69 Thank you :) |
No description provided.